#include "flv_main.h"
#include "buffer.h"
#include "data_struct.h"
#include "task.h"
int main()
{
    data_struct handle;
    handle.init(PUSH_QUEUE_NUM,STREAM_ENTRY_NUM,USER_NUM);
    task::queue_handle = &handle;
    task task_pool;
    printf("flv on!!\n");
    pthread_join(task_pool.listen_task,NULL);
    pthread_join(task_pool.recv_stream_task,NULL);
    pthread_join(task_pool.push_stream_task[0],NULL);
    pthread_join(task_pool.push_stream_task[1],NULL);
}